<?php /* Smarty version Smarty-3.0.6, created on 2011-07-25 15:33:48
         compiled from "E:\AppServ\wz\think\speed/template\member/main_site.html" */ ?>
<?php /*%%SmartyHeaderCode:135214e2d1c5c796386-09109708%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ebd9400bf59465b849905b726520e738c5016ffb' => 
    array (
      0 => 'E:\\AppServ\\wz\\think\\speed/template\\member/main_site.html',
      1 => 1311578878,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '135214e2d1c5c796386-09109708',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<!--[if IE]><script language="javascript" type="text/javascript" src="themes/js/flot/excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="themes/js/flot/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="themes/js/flot/jquery.flot.min.js"></script>
<script language="javascript" type="text/javascript" src="themes/js/flot/jquery.flot.pie.min.js"></script>
<div id="container">
	<div id ="c_title">
		<h2>欢迎您回来</h2>
		<span>最近访问时间</span>
		<div class = "clear"></div>
	</div>
	<div id ="pie">		
		<div class="title">
			<span>站点监控状态统计&nbsp;&nbsp;<?php echo $_smarty_tpl->getVariable('fault')->value;?>
&nbsp;/&nbsp;<?php echo $_smarty_tpl->getVariable('normal')->value;?>
</span>
			<A href="#">所有监控项目</A>
			<div class ="clear"></div>
		</div>		
		<div id ="aaaccc">loading</div>
	</div>
	
	<div id="site">
	<table width="900" border="0" align="center">
			<tr>
					<td width="200">名称：</td>
					<td width="200">网址：</td>
					<td width="200">状态：</td>
					<td width="200">详情：</td>
			</tr>
	</table>
	<?php  $_smarty_tpl->tpl_vars['vo'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['enname'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('list')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['vo']->key => $_smarty_tpl->tpl_vars['vo']->value){
 $_smarty_tpl->tpl_vars['enname']->value = $_smarty_tpl->tpl_vars['vo']->key;
?>
	<table width="900" border="0" align="center">			
			<tr>
					<td width="200" ><?php echo $_smarty_tpl->tpl_vars['vo']->value['title'];?>
</td>
					<td width="200" ><?php echo $_smarty_tpl->tpl_vars['vo']->value['domain'];?>
</td>	
					<td width="200"><?php if ($_smarty_tpl->tpl_vars['vo']->value['status_code']=="200"){?>正常<?php }else{ ?>故障<?php }?></td>								
					<td width="200"><a href= "<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'record','siteid'=>$_smarty_tpl->tpl_vars['vo']->value['siteid'],'title'=>$_smarty_tpl->tpl_vars['vo']->value['title'],'domain'=>$_smarty_tpl->tpl_vars['vo']->value['domain']),$_smarty_tpl);?>
">详情</a></td>
			</tr>				
	</table>
 	<?php }} ?>	
	</div>	
</div>

<div id="sidebar">
	<div class = "box">
		<div class ="title">
			<span>尊敬的客户欢迎您！</span>
		</div>
	</div>
	<div class = "box">
		<div class ="title">
			<span>栏目二</span>
		</div>
	</div>
</div>
<div class ="clear"></div>

<script type="text/javascript">
$(function () {
var data = [
	{ label: "故障",  data: 90},
	{ label: "正常",  data: 60}
	//	{ label: "故障",  data: <?php echo $_smarty_tpl->getVariable('fault')->value;?>
, color: 12},
//	{ label: "正常",  data: <?php echo $_smarty_tpl->getVariable('normal')->value;?>
, color: 3},
	
//	{ label: "提醒",  data: 80, color: 5},
];
$.plot($("#aaaccc"), data, 
		{
		        series: {
		            pie: { 
		                show: true,
		                radius: 1,
		                tilt: 0.5,
		                label: {
		                    show: true,
		                    radius: 1,
		                    formatter: function(label, series){
		                        return '<div style="font-size:8pt;text-align:center;padding:2px;color:white;">'+label+'<br/>'+Math.round(series.percent)+'%</div>';
		                    },
		                    background: { opacity: 0.8 }
		                },
		                combine: {
		                    color: '#999',
		                    threshold: 0.1
		                }
		            }
		        },
		        legend: {
		            show: false
		        }
		});
});
</script>
<?php $_template = new Smarty_Internal_Template("footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>